<%--@elvariable id="contractorExposure" type="com.weitu.contractor.entity.ContractorExposure"--%>
<%--@elvariable id="contractorEvaluation" type="com.weitu.contractor.entity.ContractorEvaluation"--%>
<%--@elvariable id="loginUserId" type="java.lang.String"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<%@taglib uri="http://workflowReviewTag.weitu.net" prefix="flow" %>
<!doctype html>
<html lang="zh">
<head>
    <title>承包商项目评价信息添加</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/contractor/projectEvaluation/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:180px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
    <a id="btn_submit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-arrow-up fa-lg">提交</a>
</div>
<form id="form1" method="POST">
    <%--@elvariable id="formType" type="java.lang.Integer"--%>
    <c:if test="${param.formType == 1}">
        <div class="information">
            <div class="information-title">
                <p>审批信息</p>
                <a class="panel-down" href="javascript:void(0)">
                    <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                </a>
            </div>
            <div class="cuttle">
                <div>
                    <%--@elvariable id="workItemId" type="java.lang.String"--%>
                    <flow:review requestName="workflowReview" workItemId="${param.workItemId}"/>
                    <input type="hidden" name="workItemId" value="${param.workItemId}">
                    <input type="hidden" name="formType" value="${param.formType}">
                    <input type="hidden" name="businessId" value="${param.businessId}">
                    <input type="hidden" name="state" value="${param.state}">
                    <input type="hidden" name="auditState" value="${param.auditState}">
                </div>
            </div>
        </div>
    </c:if>
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">承包商名称:</label>
                    <input id="contractorAuditName" name="contractorAuditName" value="${contractorEvaluation.contractorAudit.contractorName}" type="text" style="width:240px;">
                    <input id="contractorAuditId" name="contractorAuditId" value="${contractorEvaluation.contractorAuditId}" type="hidden" style="width:240px;">
                    <input id="evaluateType" name="evaluateType" value="1" type="hidden">
                    <input id="id" name="id" value="${param.id}" type="hidden">
                </div>
                <div class="form_one">
                    <label class="lable-style">项目名称:</label>
                    <input id="projectName" name="projectName" value="${contractorEvaluation.projectName}" type="text" style="width:240px;">
                    <input id="projectId" name="projectId" value="${contractorEvaluation.projectId}" type="hidden" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否合格:</label>
                    <select class="easyui-combobox" id="isQualified" name="isQualified" data-options="required:true,readonly:true" style="width:240px;">
                        <option value="1" <c:if test="${contractorEvaluation.isQualified == 1}">selected="selected"</c:if>>是</option>
                        <option value="0" <c:if test="${contractorEvaluation.isQualified == 0}">selected="selected"</c:if>>否</option>
                    </select>
                </div>
                <div class="form_one">
                    <label class="lable-style">评价人:</label>
                    <input id="evaluatorName" name="evaluatorName" value="${contractorEvaluation.evaluatorName}" type="text" style="width:240px;">
                    <input id="evaluatorId" name="evaluatorId" value="${contractorEvaluation.evaluatorId}" type="hidden" class="hide">
                </div>
                <div class="form_one">
                    <label class="lable-style">评价日期:</label>
                    <input id="evaluateDate" name="evaluateDate" value="${contractorEvaluation.evaluateDate}" class="easyui-datebox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one <c:if test="${contractorEvaluation.isExposure == 0}">hide</c:if>">
                    <label class="lable-style">是否曝光:</label>
                    <select class="easyui-combobox" id="isExposure" name="isExposure" data-options="required:true,disabled:true" style="width:240px;">
                        <option value="1" <c:if test="${contractorEvaluation.isExposure == 1}">selected="selected"</c:if>>是</option>
                        <option value="0" <c:if test="${contractorEvaluation.isExposure == 0}">selected="selected"</c:if>>否</option>
                    </select>
                </div>
                <div class="form_one <c:if test="${contractorEvaluation.isExposure == 0}">hide</c:if>">
                    <label class="lable-style">曝光开始日期:</label>
                    <input id="exposureStartDate" name="exposureStartDate" class="easyui-datebox" value="${contractorExposure.exposureStartDate}" data-options="required:true,disabled:true,validType:'startDateCompare[\'#exposureEndDate\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one <c:if test="${contractorEvaluation.isExposure == 0}">hide</c:if>">
                    <label class="lable-style">曝光结束日期:</label>
                    <input id="exposureEndDate" name="exposureEndDate" class="easyui-datebox" value="${contractorExposure.exposureEndDate}" data-options="required:true,disabled:true,validType:'endDateCompare[\'#exposureStartDate\']'" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">评审意见:</label>
                    <input id="evaluateOpinion" name="evaluateOpinion" type="text" class="easyui-textbox" value="${contractorEvaluation.evaluateOpinion}"
                           data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="accessoryList" type="java.util.List"--%>
                    <c:if test="${param.state == 'edit'}">
                        <accessory:accessorySimple permission="write" packageKey="project_evaluation" packageInfos="${accessoryList}" uploadUserId="${loginUserId}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                    </c:if>
                    <c:if test="${param.state == 'view'}">
                        <accessory:accessorySimple packageKey="project_evaluation" packageInfos="${accessoryList}" uploadUserId="${loginUserId}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                    </c:if>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
